package com.ruoyi.web.controller.organizers.api;

import com.ruoyi.activity.service.IWebOrganizersService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.model.organizers.WebOrganizers;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 主办方Controller
 *
 * @author 张怀秋
 * &#064;date  2024-08-02
 */
@Api(tags = "主办方检索接口")
@RestController
@RequestMapping("/api/organizers/organizers")
public class WebApiOrganizersController extends BaseController {

    @Autowired
    private IWebOrganizersService webOrganizersService;

    @ApiOperation("查询主办方，用于发布竞赛，活动等做检索")
    @GetMapping("/getList")
    public AjaxResult getList() {
        return success(webOrganizersService.getList());
    }
}
